import Login from './sysDemo/Login';
import Home from './sysDemo/Home';
import UserInfo from './sysDemo/UserInfo';
import Article from './sysDemo/Article';
import Main from './sysDemo/Main';
import AddArticle from './sysDemo/AddArticle';
import ArticleDetail from './sysDemo/ArticleDetail';
import AppDetail from './sysDemo/AppDetail';
import AddApp from './sysDemo/AddApp';
import Examine from './sysDemo/Examine';
import Adopt from './sysDemo/Adopt';
import Failed from './sysDemo/Failed';
import ViewDetails from './sysDemo/ViewDetails';

const routes = [

    {
        path:'/login',
        exact:true,
        component:Login
    },
    {
        path:'/home',
        component:Home,
        routes:[
            {
                path:'/home/main',
                component:Main
            },
            {
                path:'/home/article',
                component:Article
            },
            {
                path:'/home/articleDetail',
                component:ArticleDetail
            },
            {
                path:'/home/addArticle',
                component:AddArticle
            },
            {
                path:'/home/appdetail',
                component:AppDetail
            },
            {
                path:'/home/addapp',
                component:AddApp
            },
            {
                path:'/home/userinfo',
                component:UserInfo
            },
            {
                path:'/home/examine',
                component:Examine
            },
            {
                path:'/home/adopt',
                component:Adopt
            },
            {
                path:'/home/failed',
                component:Failed
            },
            {
                path:'/home/viewdetails',
                component:ViewDetails
            }
        ]     
    },


    // {
    //     path:'/',
    //     exact:true,
    //     component:Login
    // },
    // {
    //     path:'/home',
    //     exact:true,
    //     component:Home,      
    // },
    // {
    //     path:'/article',
    //     component:PraDetails
    // },
    // {
    //     path:'/useapp',
    //     component:UseApp
    // },
    // {
    //     path:'/userinfo',
    //     component:UserInfo,
    // },
    // {
    //     path:'/feedback',
    //     component:Feedback
    // }
]


export default routes;